package com.nbwyctf.helper.task;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * @author chetaifu
 */
@Component
public class DemoTask {
    private static final Logger logger = LoggerFactory.getLogger(DemoTask.class);

    /**
     * 定时更新任务: 每天三点调一次这个方法
     * <a href="https://www.jianshu.com/p/1defb0f22ed1">cron表达式语法</a>
     */
    @Scheduled(cron = "0 0 3 * * ? ")
    public void updateInfoTask(){

    }
}
